<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0px;
            padding: 0px;
        }
        html,body{
            height: 100%;
        }
        div.bg{
            height: 100%;
            background-image: url(./images/background.jpg);
            animation-name: bg;
            animation-duration: 30s;
            animation-iteration-count: infinite;
            animation-timing-function: linear;
        }
        div.roles{
            width: 1000px;
            height:180px ;
            /* background-color: red; */
            margin: auto;
            position: absolute;
            top: 500px;
            left: 250px;
            display: flex;
            justify-content: space-between;
            overflow: hidden;
            
        }
        div.roles div{
            width: 200px;
            height: 180px;
            /* background-color: royalblue; */
            overflow: hidden;
            /* float: left;
            margin-right: 50px; */
        }
        div.roles div img{
            width: 1600px;
            height: 180px;
            animation-name: roles;
            animation-duration: 1s;
            animation-iteration-count: infinite;
            animation-timing-function:steps(8) ;
        }
        @keyframes roles{
            from{
                margin-left: 0px;
            }
            to{
                margin-left: -1600px;
            }
        }
        @keyframes bg{
            from{
                margin-left:-2000px;
            }
            to{
                margin-left: 0;
            }
        }
    </style>
</head>
<body>
    <div class="bg"></div>
    <div class="roles">
        <div>
            <img src="./images/bj.png">
        </div>
        <div>
            <img src="./images/sc.png" >
        </div>
        <div>
            <img src="./images/tc.png" >
        </div>
        <div>
            <img src="./images/wk.png" >
        </div>
    </div>
</body>
</html>